# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pybloomfiltermmap
pkgver=0.3.15
pkgrel=3
pkgdesc='A Bloom filter (bloomfilter) for Python built on mmap.'
arch=('x86_64' 'aarch64')
url='http://github.com/axiak/pybloomfiltermmap/'
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
options=('!emptydirs')
conflicts=('python2-pybloomfiltermmap-git')
provides=('python2-pybloomfiltermmap')
source=("https://pypi.python.org/packages/42/09/a782ffddcdc85fc4b99a97d05441e2231a5e64272b47760434068d23929a/pybloomfiltermmap-$pkgver.tar.gz")
sha512sums=('36ceff5860e97686387932945d6ee2f342e07dd45b4320b09e8153987c5aa7da678db86179759528c5a4c0d8fbc1e1a98b549c55e17a6d66f1c83c0f1ee46ed1')

build() {
  cd "pybloomfiltermmap-$pkgver"

  python2 setup.py build
}

package() {
  cd "pybloomfiltermmap-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

